package com.dsjy.yf.address.utils;

import com.dsjy.yf.address.config.base.BizException;
import com.dsjy.yf.address.config.base.CommonEnum;

/**
 * @author whj
 * @version 1.0
 * @date 2021-01-19 10:08
 */
public class IntegerConvertUtil {
    public static Integer stringToInt(String val){
        try{
            return Integer.parseInt(val);
        }catch (Exception e){
            throw new BizException(CommonEnum.PARAM_ERROR);
        }
    }
}
